import { createRouter, createWebHistory } from 'vue-router'

const routes = [
    {
        path: '/',
        redirect: '/404',
        name: ''
    },
    {
        path: '/partner',
        name: 'partner',
        hidden: true,
        meta: { title: '我的合伙人', keepAlive: true, requireAuth: false },
        props: true,
        component: () => import('@/views/partner/index.vue') // 懒加载
    },
    {
        path: '/message',
        name: 'message',
        hidden: true,
        meta: { title: '公告列表', keepAlive: true, requireAuth: false },
        props: true,
        component: () => import('@/views/message/index.vue') // 懒加载
    },
    {
        path: '/agentDown',
        name: 'agentDown',
        hidden: true,
        props: true,
        meta: { title: 'APP下载', keepAlive: true, requireAuth: false, show: true },
        component: () => import('@/views/down/agent.vue') // 懒加载
    },
    {
        path: '/customerDown',
        name: 'customerDown',
        hidden: true,
        props: true,
        meta: { title: 'APP下载', keepAlive: true, requireAuth: false, show: true },
        component: () => import('@/views/down/customer.vue') // 懒加载
    },
    {
        path: '/message/detail',
        name: 'messageDeatil',
        hidden: true,
        meta: { title: '公告详情', keepAlive: true, requireAuth: false },
        props: true,
        component: () => import('@/views/message/announcementDetail.vue') // 懒加载
    },
    {
        path: '/transferRecord',
        name: 'transferRecord',
        hidden: true,
        props: true,
        meta: { title: '划拨记录', keepAlive: true, requireAuth: false },
        component: () => import('@/views/terminal/transferRecord.vue') // 懒加载
    },
    {
        path: '/merchant',
        name: 'Merchant',
        hidden: true,
        meta: { title: '商户查询', keepAlive: true, requireAuth: false },
        props: true,
        component: () => import('@/views/merchant/index.vue') // 懒加载
    },
    {
        path: '/merchantData',
        name: 'MerchantData',
        hidden: true,
        meta: { title: '商户查询', keepAlive: true, requireAuth: false },
        props: true,
        component: () => import('@/views/merchant/data.vue') // 懒加载
    },
    {
        path: '/merchantDetail',
        name: 'MerchantDetail',
        hidden: true,
        meta: { title: '商户查询', keepAlive: true, requireAuth: false },
        props: true,
        component: () => import('@/views/merchant/merchantDetail.vue') // 懒加载
    },
    {
        path: '/TradingDetail',
        name: 'TradingDetail',
        hidden: true,
        meta: { title: '商户查询', keepAlive: true, requireAuth: false },
        props: true,
        component: () => import('@/views/merchant/TradingDetail.vue') // 懒加载
    },
    {
        path: '/equipment',
        name: 'Equipment',
        hidden: true,
        meta: { title: '我的机具', keepAlive: true, requireAuth: false },
        props: true,
        component: () => import('@/views/equipment/index.vue') // 懒加载
    },
    // {
    //     path: '/statistics',
    //     name: 'Statistics',
    //     hidden: true,
    //     meta: { title: '机具统计', keepAlive: true, requireAuth: false },
    //     props: true,
    //     component: () => import('@/views/equipment/Statistics.vue') // 懒加载
    // },
    {
        path: '/posActDetail',
        name: 'posActDetail',
        hidden: true,
        meta: { title: '机具唤醒详情', keepAlive: true, requireAuth: false },
        props: true,
        component: () => import('@/views/equipment/posActDetail.vue') // 懒加载
    },
    {
        path: '/posActstatistics',
        name: 'posActstatistics',
        hidden: true,
        meta: { title: '机具唤醒统计', keepAlive: true, requireAuth: false },
        props: true,
        component: () => import('@/views/equipment/posActstatistics.vue') // 懒加载
    },
    {
        path: '/equipmentLists',
        name: 'equipmentLists',
        hidden: true,
        meta: { title: '机具列表', keepAlive: true, requireAuth: false },
        props: true,
        component: () => import('@/views/equipment/equipmentLists.vue') // 懒加载
    },
    {
        path: '/cxfcooperationfw',
        name: 'cxfcooperationfw',
        hidden: true,
        props: true,
        meta: { title: '服务协议', keepAlive: true, requireAuth: false, show: true },
        component: () => import('@/views/cxf/cooperationfw.vue') // 懒加载
    },
    {
        path: '/cxfprivacy',
        name: 'cxfprivacy',
        hidden: true,
        props: true,
        meta: { title: '隐私政策协议', keepAlive: false, requireAuth: false, show: true },
        component: () => import('@/views/cxf/privacy.vue') // 懒加载
    },
    // {
    //     path: '/terminal',
    //     name: 'terminal',
    //     hidden: true,
    //     meta: { title: '终端管理', keepAlive: true, requireAuth: false },
    //     props: true,
    //     component: () => import('@/views/tabs/terminal.vue') // 懒加载
    // },
    {
        path: '/mine',
        name: 'mine',
        hidden: true,
        meta: { title: '个人中心', keepAlive: true, requireAuth: false },
        props: true,
        component: () => import('@/views/tabs/mine.vue') // 懒加载
    },
    {
        path: '/integralPosList',
        name: 'integralPosList',
        hidden: true,
        meta: { title: '积分兑换', keepAlive: true, requireAuth: false },
        props: true,
        component: () => import('@/views/integral/posList.vue') // 懒加载
    },
    {
        path: '/posList',
        name: 'posList',
        hidden: true,
        meta: { title: '终端订购', keepAlive: true, requireAuth: false },
        props: true,
        component: () => import('@/views/orderPos/posList.vue') // 懒加载
    },
    {
        path: '/cooperation',
        name: 'cooperation',
        hidden: true,
        meta: { title: '线下收单业务服务合作协议', keepAlive: true, requireAuth: false, show: true },
        props: true,
        component: () => import('@/views/cooperation.vue') // 懒加载
    },
    {
        path: '/resetPwdByPhone',
        name: 'resetPwdByPhone',
        hidden: true,
        meta: { title: '密码重置', keepAlive: true, requireAuth: false, show: true },
        props: true,
        component: () => import('@/views/personal/resetPwdByPhone.vue') // 懒加载
    },
    {
        path: '/reset',
        name: 'reset',
        hidden: true,
        props: true,
        meta: { title: '设置密码', keepAlive: true, requireAuth: false },
        component: () => import('@/views/payPwd/resetLoginPassword.vue') // 懒加载
    },
    {
        path: '/pwd',
        name: 'pwd',
        hidden: true,
        meta: { title: '密码重置', keepAlive: true, requireAuth: false, show: true },
        props: true,
        component: () => import('@/views/personal/pwd.vue') // 懒加载
    },
    {
        path: '/confirmOrder',
        name: 'confirmOrder',
        hidden: true,
        props: true,
        meta: { title: '确认订单', keepAlive: true, requireAuth: false },
        component: () => import('@/views/orderPos/confirmOrder.vue') // 懒加载
    },
    {
        path: '/confirmOrderIntegral',
        name: 'confirmOrderIntegral',
        hidden: true,
        props: true,
        meta: { title: '确认订单', keepAlive: true, requireAuth: false },
        component: () => import('@/views/orderPos/confirmOrderIntegral.vue') // 懒加载
    },
    {
        path: '/pay',
        name: 'pay',
        hidden: true,
        props: true,
        meta: { title: '确认订单', keepAlive: true, requireAuth: false },
        component: () => import('@/views/orderPos/pay.vue') // 懒加载
    },
    {
        path: '/addressList',
        name: 'addressList',
        hidden: true,
        props: true,
        meta: { title: '地址列表', keepAlive: false, requireAuth: false },
        component: () => import('@/views/orderPos/addressList.vue') // 懒加载
    },
    {
        path: '/uploadInfo',
        name: 'uploadInfo',
        hidden: true,
        props: true,
        meta: { title: '地址列表', keepAlive: false, requireAuth: false },
        component: () => import('@/views/orderPos/uploadInfo.vue') // 懒加载
    },
    {
        path: '/toApp',
        name: 'toApp',
        hidden: true,
        props: true,
        meta: { title: '支付成功', keepAlive: false, requireAuth: false, show: true },
        component: () => import('@/views/orderPos/toApp.vue') // 懒加载
    },
    {
        path: '/payWait',
        name: 'payWait',
        hidden: true,
        props: true,
        meta: { title: '提交成功', keepAlive: false, requireAuth: false, show: true },
        component: () => import('@/views/orderPos/payWait.vue') // 懒加载
    },
    {
        path: '/orderList',
        name: 'orderList',
        hidden: true,
        props: true,
        meta: { title: '订单列表', keepAlive: false, requireAuth: false },
        component: () => import('@/views/orderPos/orderList.vue') // 懒加载
    },
    {
        path: '/posManagement',
        name: 'posManagement',
        hidden: true,
        props: true,
        meta: { title: '终端管理', keepAlive: false, requireAuth: false },
        component: () => import('@/views/posManagement/index.vue') // 懒加载
    },
    {
        path: '/statistics',
        name: 'statistics',
        hidden: true,
        props: true,
        meta: { title: '终端统计', keepAlive: false, requireAuth: false },
        component: () => import('@/views/posManagement/statistics.vue') // 懒加载
    },
    {
        path: '/admin',
        name: 'admin',
        hidden: true,
        props: true,
        meta: { title: '终端管理', keepAlive: false, requireAuth: false },
        component: () => import('@/views/posManagement/admin.vue') // 懒加载
    },
    {
        path: '/subEditRate',
        name: 'subEditRate',
        hidden: true,
        props: true,
        meta: { title: '调整默认费率', keepAlive: true, requireAuth: false },
        component: () => import('@/views/posManagement/subEditRate.vue') // 懒加载
    },
    {
        path: '/editRate',
        name: 'editRate',
        hidden: true,
        props: true,
        meta: { title: '调整默认费率', keepAlive: true, requireAuth: false },
        component: () => import('@/views/posManagement/editRate.vue') // 懒加载
    },
    {
        path: '/downImg',
        name: 'downImg',
        hidden: true,
        props: true,
        meta: { title: '', keepAlive: true, requireAuth: false },
        component: () => import('@/views/downImg/index.vue') // 懒加载
    },
    {
        path: '/partner',
        name: 'Partner',
        hidden: true,
        props: true,
        meta: { title: '终端管理', keepAlive: false, requireAuth: false },
        component: () => import('@/views/Partner/index.vue') // 懒加载
    },
    {
        path: '/purse',
        name: 'Purse',
        hidden: true,
        props: true,
        meta: { title: '账户列表', keepAlive: false, requireAuth: false },
        component: () => import('@/views/purse/index.vue') // 懒加载
    },
    {
        path: '/LSlist',
        name: 'LSlist',
        hidden: true,
        props: true,
        meta: { title: '账户列表', keepAlive: false, requireAuth: false },
        component: () => import('@/views/purse/LSlist.vue') // 懒加载
    },
    {
        path: '/allot',
        name: 'allot',
        hidden: true,
        props: true,
        meta: { title: '终端调拨', keepAlive: false, requireAuth: false },
        component: () => import('@/views/posManagement/allot.vue') // 懒加载
    },
    {
        path: '/allotBank',
        name: 'allotBank',
        hidden: true,
        props: true,
        meta: { title: '终端回拨', keepAlive: false, requireAuth: false },
        component: () => import('@/views/posManagement/allotBank.vue') // 懒加载
    },
    {
        path: '/posInfo',
        name: 'posInfo',
        hidden: true,
        props: true,
        meta: { title: '终端详情', keepAlive: false, requireAuth: false },
        component: () => import('@/views/posManagement/posInfo.vue') // 懒加载
    },
    {
        path: '/subordinateAgent',
        name: 'subordinateAgent',
        hidden: true,
        props: true,
        meta: { title: '下级代理', keepAlive: false, requireAuth: false },
        component: () => import('@/views/posManagement/subordinateAgent.vue') // 懒加载
    },
    {
        path: '/sateActive',
        name: 'sateActive',
        hidden: true,
        props: true,
        meta: { title: '活动设置', keepAlive: false, requireAuth: false },
        component: () => import('@/views/posManagement/sateActive.vue') // 懒加载
    },
    {
        path: '/activeSelcet',
        name: 'activeSelcet',
        hidden: true,
        props: true,
        meta: { title: '活动设置', keepAlive: false, requireAuth: false },
        component: () => import('@/views/posManagement/activeSelcet.vue') // 懒加载
    },
    {
        path: '/merchants',
        name: 'merchants',
        hidden: true,
        props: true,
        meta: { title: '商户查询', keepAlive: true, requireAuth: false },
        component: () => import('@/views/merchants/merchants.vue') // 懒加载
    },
    {
        path: '/transactionDetail',
        name: 'transactionDetail',
        hidden: true,
        props: true,
        meta: { title: '交易详情', keepAlive: false, requireAuth: false },
        component: () => import('@/views/merchants/transactionDetail.vue') // 懒加载
    },
    {
        path: '/checkDetail',
        name: 'checkDetail',
        hidden: true,
        props: true,
        meta: { title: '商户详情', keepAlive: false, requireAuth: false },
        component: () => import('@/views/merchants/checkDetail.vue') // 懒加载
    },
    {
        path: '/rateEdit',
        name: 'rateEdit',
        hidden: true,
        props: true,
        meta: { title: '费率变更', keepAlive: false, requireAuth: false },
        component: () => import('@/views/merchants/rateEdit.vue') // 懒加载
    },
    {
        path: '/deal',
        name: 'deal',
        hidden: true,
        props: true,
        meta: { title: '交易查询', keepAlive: false, requireAuth: false },
        component: () => import('@/views/merchants/deal.vue') // 懒加载
    },
    {
        path: '/detail',
        name: 'detail',
        hidden: true,
        props: true,
        meta: { title: '商户详情', keepAlive: false, requireAuth: false },
        component: () => import('@/views/merchants/detail.vue') // 懒加载
    },
    {
        path: '/dataAnalysis',
        name: 'dataAnalysis',
        hidden: true,
        props: true,
        meta: { title: '数据分析', keepAlive: false, requireAuth: false },
        component: () => import('@/views/dataAnalysis/dataAnalysis.vue') // 懒加载
    },
    {
        path: '/pos',
        name: 'pos',
        hidden: true,
        props: true,
        meta: { title: '终端分析', keepAlive: false, requireAuth: false },
        component: () => import('@/views/dataAnalysis/pos.vue') // 懒加载
    },
    {
        path: '/mySettlement',
        name: 'mySettlement',
        hidden: true,
        props: true,
        meta: { title: '结算信息', keepAlive: false, requireAuth: false },
        component: () => import('@/views/personal/mySettlement.vue') // 懒加载
    },
    {
        path: '/privacySettlement',
        name: 'privacySettlement',
        hidden: true,
        props: true,
        meta: { title: '用户服务协议', keepAlive: false, requireAuth: false, show: true },
        component: () => import('@/views/personal/privacySettlement.vue') // 懒加载
    },
    {
        path: '/editSettlement',
        name: 'editSettlement',
        hidden: true,
        props: true,
        meta: { title: '结算变更', keepAlive: true, requireAuth: false },
        component: () => import('@/views/personal/editSettlement.vue') // 懒加载
    },
    {
        path: '/problem',
        name: 'problem',
        hidden: true,
        props: true,
        meta: { title: '常见问题', keepAlive: false, requireAuth: false },
        component: () => import('@/views/personal/problem.vue') // 懒加载
    },
    {
        path: '/problemTypeList',
        name: 'problemTypeList',
        hidden: true,
        props: true,
        meta: { title: '问题列表', keepAlive: false, requireAuth: false },
        component: () => import('@/views/personal/problemTypeList.vue') // 懒加载
    },
    {
        path: '/agentDetail',
        name: 'agentDetail',
        hidden: true,
        props: true,
        meta: { title: '服务商详情', keepAlive: false, requireAuth: false },
        component: () => import('@/views/service/agentDetail.vue') // 懒加载
    },
    {
        path: '/privacy',
        name: 'privacy',
        hidden: true,
        props: true,
        meta: { title: '隐私政策协议', keepAlive: false, requireAuth: false, show: true },
        component: () => import('@/views/privacy.vue') // 懒加载
    },
    {
        path: '/privacyCust',
        name: 'privacyCust',
        hidden: true,
        props: true,
        meta: { title: '隐私政策协议', keepAlive: false, requireAuth: false, show: true },
        component: () => import('@/views/privacyCust.vue') // 懒加载
    },
    {
        path: '/myInfo',
        name: 'myInfo',
        hidden: true,
        props: true,
        meta: { title: '我的信息', keepAlive: false, requireAuth: false },
        component: () => import('@/views/personal/myInfo.vue') // 懒加载
    },
    {
        path: '/merchantsTj',
        name: 'merchantsTj',
        hidden: true,
        props: true,
        meta: { title: '商户分析', keepAlive: false, requireAuth: false },
        component: () => import('@/views/dataAnalysis/merchants.vue') // 懒加载
    },
    {
        path: '/rankingList',
        name: 'rankingList',
        hidden: true,
        props: true,
        meta: { title: '排行榜', keepAlive: false, requireAuth: false },
        component: () => import('@/views/rankingList/rankingList.vue') // 懒加载
    },
    {
        path: '/addService',
        name: 'addService',
        hidden: true,
        props: true,
        meta: { title: '新增合伙人', keepAlive: true, requireAuth: false },
        component: () => import('@/views/service/addService.vue') // 懒加载
    },
    {
        path: '/adminService',
        name: 'adminService',
        hidden: true,
        props: true,
        meta: { title: '服务商列表', keepAlive: true, requireAuth: false },
        component: () => import('@/views/service/adminService.vue') // 懒加载
    },
    {
        path: '/coseConfig',
        name: 'coseConfig',
        hidden: true,
        props: true,
        meta: { title: '成本配置', keepAlive: true, requireAuth: false },
        component: () => import('@/views/service/coseConfig.vue') // 懒加载
    },
    {
        path: '/bankList',
        name: 'bankList',
        hidden: true,
        props: true,
        meta: { title: '开户行', keepAlive: true, requireAuth: false },
        component: () => import('@/views/service/bankList.vue') // 懒加载
    },
    {
        path: '/cashBack',
        name: 'cashBack',
        hidden: true,
        props: true,
        meta: { title: '返现配置', keepAlive: true, requireAuth: false },
        component: () => import('@/views/service/cashBack.vue') // 懒加载
    },
    {
        path: '/walletList',
        name: 'walletList',
        hidden: true,
        props: true,
        meta: { title: '账户列表', keepAlive: true, requireAuth: false },
        component: () => import('@/views/wallet/walletList.vue') // 懒加载
    },
    // {
    // 	path: '/share',
    // 	name: 'share',
    // 	hidden: true,
    // 	props: true,
    // 	meta: { title: '展业分享', keepAlive: true, requireAuth: false },
    // 	component: () => import('@/views/shareregister/share.vue') // 懒加载
    // },
    {
        path: '/cashInfo',
        name: 'cashInfo',
        hidden: true,
        props: true,
        meta: { title: '提现', keepAlive: true, requireAuth: false },
        component: () => import('@/views/wallet/cashInfo.vue') // 懒加载
    },
    {
        path: '/setUp',
        name: 'setUp',
        hidden: true,
        props: true,
        meta: { title: '设置', keepAlive: true, requireAuth: false },
        component: () => import('@/views/personal/setUp.vue') // 懒加载
    },
    {
        path: '/getCode',
        name: 'getCode',
        hidden: true,
        props: true,
        meta: { title: '手机号验证', keepAlive: true, requireAuth: false },
        component: () => import('@/views/payPwd/getCode.vue') // 懒加载
    },
    {
        path: '/payPwd',
        name: 'payPwd',
        hidden: true,
        props: true,
        meta: { title: '支付密码', keepAlive: true, requireAuth: false },
        component: () => import('@/views/payPwd/payPwd.vue') // 懒加载
    },
    {
        path: '/results',
        name: 'results',
        hidden: true,
        props: true,
        meta: { title: '提现结果', keepAlive: true, requireAuth: false },
        component: () => import('@/views/wallet/results.vue') // 懒加载
    },
    {
        path: '/resetLoginPassword',
        name: 'resetLoginPassword',
        hidden: true,
        props: true,
        meta: { title: '设置密码', keepAlive: true, requireAuth: false },
        component: () => import('@/views/payPwd/resetLoginPassword.vue') // 懒加载
    },
    {
        path: '/loginPwd',
        name: 'loginPwd',
        hidden: true,
        props: true,
        meta: { title: '忘记密码', keepAlive: true, requireAuth: false, show: true },
        component: () => import('@/views/payPwd/loginPwd.vue') // 懒加载
    },
    {
        path: '/integral',
        name: 'integral',
        hidden: true,
        props: true,
        meta: { title: '积分管理', keepAlive: true, requireAuth: false },
        component: () => import('@/views/integral/integral.vue') // 懒加载
    },
    {
        path: '/integralDetail',
        name: 'integralDetail',
        hidden: true,
        props: true,
        meta: { title: '积分明细', keepAlive: true, requireAuth: false },
        component: () => import('@/views/integral/integralDetail.vue') // 懒加载
    },
    {
        path: '/transferDown',
        name: 'transferDown',
        hidden: true,
        props: true,
        meta: { title: '积分转让', keepAlive: true, requireAuth: false },
        component: () => import('@/views/integral/transferDown.vue') // 懒加载
    },
    {
        path: '/subAgent',
        name: 'subAgent',
        hidden: true,
        props: true,
        meta: { title: '下级代理商', keepAlive: true, requireAuth: false },
        component: () => import('@/views/integral/subAgent.vue') // 懒加载
    },
    {
        path: '/agent',
        name: 'agent',
        hidden: true,
        props: true,
        meta: { title: '服务商管理', keepAlive: true, requireAuth: false },
        component: () => import('@/views/service/index.vue') // 懒加载
    },
    {
        path: '/cashAgreement',
        name: 'cashAgreement',
        hidden: true,
        props: true,
        meta: { title: '共享经济灵活用工人员服务协议', keepAlive: true, requireAuth: false, show: true },
        component: () => import('@/views/cashAgreement/index.vue') // 懒加载
    },
    {
        path: '/transferUp',
        name: 'transferUp',
        hidden: true,
        props: true,
        meta: { title: '积分转让', keepAlive: true, requireAuth: false },
        component: () => import('@/views/integral/transferUp.vue') // 懒加载
    },
    {
        path: '/ykList',
        name: 'ykList',
        hidden: true,
        props: true,
        meta: { title: '盈客', keepAlive: true, requireAuth: false },
        component: () => import('@/views/ykList/index.vue') // 懒加载
    },
    {
        path: '/shareYk',
        name: 'shareYk',
        hidden: true,
        props: true,
        meta: { title: '盈客码', keepAlive: true, requireAuth: false },
        component: () => import('@/views/ykList/shareYk.vue') // 懒加载
    },
    {
        path: '/ykregister',
        name: 'ykregister',
        hidden: true,
        props: true,
        meta: { title: '盈客注册', keepAlive: true, requireAuth: false, show: true },
        component: () => import('@/views/ykList/ykregister.vue') // 懒加载
    },
    // {
    //     path: '/earnings',
    //     name: 'earnings',
    //     hidden: true,
    //     props: true,
    //     meta: { title: '收益统计', keepAlive: true, requireAuth: false },
    //     component: () => import('@/views/earnings/earnings.vue') // 懒加载
    // },
    {
        path: '/signing',
        name: 'signing',
        hidden: true,
        props: true,
        meta: { title: '签约', keepAlive: true, requireAuth: false },
        component: () => import('@/views/wallet/signing.vue') // 懒加载
    },
    {
        path: '/monEarnings',
        name: 'monEarnings',
        hidden: true,
        props: true,
        meta: { title: '月收益', keepAlive: true, requireAuth: false },
        component: () => import('@/views/earnings/monEarnings.vue') // 懒加载
    },
    {
        path: '/accountDetail',
        name: 'accountDetail',
        hidden: true,
        props: true,
        meta: { title: '账户明细', keepAlive: true, requireAuth: false },
        component: () => import('@/views/wallet/accountDetail.vue') // 懒加载
    },
    {
        path: '/earningDetail',
        name: 'earningDetail',
        hidden: true,
        props: true,
        meta: { title: '收益明细', keepAlive: true, requireAuth: false },
        component: () => import('@/views/earnings/earningDetail.vue') // 懒加载
    },
    {
        path: '/success',
        name: 'success',
        hidden: true,
        props: true,
        meta: { title: '注册成功', keepAlive: true, requireAuth: false, show: true },
        component: () => import('@/views/shareregister/success/index.vue') // 懒加载
    },
    {
        path: '/trading',
        name: 'trading',
        hidden: true,
        props: true,
        meta: { title: '交易查询', keepAlive: true, requireAuth: false },
        component: () => import('@/views/earnings/trading.vue') // 懒加载
    },
    {
        path: '/subordinateAgentCallback',
        name: 'subordinateAgentCallback',
        hidden: true,
        props: true,
        meta: { title: '记录', keepAlive: true, requireAuth: false },
        component: () => import('@/views/posManagement/subordinateAgentCallback.vue') // 懒加载
    },
    {
        path: '/profitDetail',
        name: 'profitDetail',
        hidden: true,
        props: true,
        meta: { title: '收益详情', keepAlive: true, requireAuth: false },
        component: () => import('@/views/earnings/profitDetail.vue') // 懒加载
    },
    {
        path: '/tradingDetail',
        name: 'tradingDetail',
        hidden: true,
        props: true,
        meta: { title: '交易详情', keepAlive: true, requireAuth: false },
        component: () => import('@/views/earnings/tradingDetail.vue') // 懒加载
    },
    {
        path: '/shareregister',
        name: 'shareregister',
        hidden: true,
        props: true,
        meta: { title: '注册', keepAlive: true, requireAuth: false, show: true },
        component: () => import('@/views/shareregister/index.vue') // 懒加载
    },
    // {
    //     path: '/transferRecord',
    //     name: 'transferRecord',
    //     hidden: true,
    //     props: true,
    //     meta: { title: '调拨记录', keepAlive: true, requireAuth: false, show: true },
    //     component: () => import('@/views/transferRecord/index.vue') // 懒加载
    // },
    {
        path: '/callRecord',
        name: 'callRecord',
        hidden: true,
        props: true,
        meta: { title: '回拨记录', keepAlive: true, requireAuth: false, show: true },
        component: () => import('@/views/transferRecord/callRecord.vue') // 懒加载
    },
    {
        path: '/recordDetailed',
        name: 'recordDetailed',
        hidden: true,
        props: true,
        meta: { title: '明细', keepAlive: true, requireAuth: false, show: true },
        component: () => import('@/views/transferRecord/recordDetailed.vue') // 懒加载
    },
    {
        path: '/batchRate',
        name: 'batchRate',
        hidden: true,
        props: true,
        meta: { title: '批量设置费率', keepAlive: true, requireAuth: false, show: true },
        component: () => import('@/views/batchRate/index.vue') // 懒加载
    },
    {
        path: '/recordRate',
        name: 'recordRate',
        hidden: true,
        props: true,
        meta: { title: '批量设置费率', keepAlive: true, requireAuth: false, show: true },
        component: () => import('@/views/batchRate/recordRate.vue') // 懒加载
    },
    {
        path: '/setsimCard',
        name: 'setsimCard',
        hidden: true,
        props: true,
        meta: { title: '批量设置SIM卡', keepAlive: true, requireAuth: false, show: true },
        component: () => import('@/views/setsimCard/index.vue') // 懒加载
    },
    {
        path: '/setSim',
        name: 'setSim',
        hidden: true,
        props: true,
        meta: { title: '批量设置SIM卡', keepAlive: true, requireAuth: false, show: true },
        component: () => import('@/views/setsimCard/setSim.vue') // 懒加载
    },
    {
        path: '/message',
        name: 'message',
        hidden: true,
        props: true,
        meta: { title: '消息详情', keepAlive: true, requireAuth: false, show: true },
        component: () => import('@/views/message/message.vue') // 懒加载
    },
    {
        path: '/myTzxx',
        name: 'myTzxx',
        hidden: true,
        props: true,
        meta: { title: '终端统计', keepAlive: true, requireAuth: false, show: true },
        component: () => import('@/views/personal/myTzxx.vue') // 懒加载
    },
    {
        path: '/shippingAddress',
        name: 'shippingAddress',
        hidden: true,
        props: true,
        meta: { title: '收货地址', keepAlive: true, requireAuth: false, show: true },
        component: () => import('@/views/shippingAddress/index.vue') // 懒加载
    },
    {
        path: '/hxhshdysxy',
        name: 'hxhshdysxy', //合享惠商户端的隐私协议页面
        hidden: true,
        props: true,
        meta: { title: '隐私协议', keepAlive: false, requireAuth: false, show: true },
        component: () => import('@/views/hxhshdysxy.vue') // 懒加载
    },

    {
        path: '/hxhshd_bankCardAuthXy',
        name: 'hxhshd_bankCardAuthXy', //合享惠商户端的隐私协议页面
        hidden: true,
        props: true,
        meta: { title: '隐私协议', keepAlive: false, requireAuth: false, show: true },
        component: () => import('@/views/hxhshd_bankCardAuthXy.vue') // 懒加载
    },
    {
        path: '/cooperationfw',
        name: 'cooperationfw',
        hidden: true,
        props: true,
        meta: { title: '服务协议', keepAlive: true, requireAuth: false, show: true },
        component: () => import('@/views/cooperationfw.vue') // 懒加载
    },
    {
        path: '/404',
        name: '404',
        meta: { title: '404', keepAlive: false, requireAuth: false, show: true },
        hidden: true,
        component: () => import('@/views/404.vue') // 懒加载
    },
    {
        path: '/shareData',
        name: 'shareData',
        hidden: true,
        props: true,
        meta: { title: '展业数据', keepAlive: true, requireAuth: false },
        component: () => import('@/views/shareData/index.vue') // 懒加载
    },
    {
        path: '/sharemerchantData',
        name: 'sharemerchantData',
        hidden: true,
        props: true,
        meta: { title: '商户数据', keepAlive: true, requireAuth: false },
        component: () => import('@/views/shareData/merchantData.vue') // 懒加载
    },
    {
        path: '/schoolDetail',
        name: 'schoolDetail',
        hidden: true,
        props: true,
        meta: { title: '课程详情', keepAlive: true, requireAuth: false },
        component: () => import('@/views/schoolDetail/index.vue') // 懒加载
    },
    {
        path: '/shareTrend',
        name: 'shareTrend',
        hidden: true,
        props: true,
        meta: { title: '展业趋势', keepAlive: true, requireAuth: false },
        component: () => import('@/views/shareData/shareTrend.vue') // 懒加载
    },
    {
        path: '/trendData',
        name: 'trendData',
        hidden: true,
        props: true,
        meta: { title: '交易数据', keepAlive: true, requireAuth: false },
        component: () => import('@/views/shareData/trendData.vue') // 懒加载
    },
    {
        path: '/partnerData',
        name: 'partnerData',
        hidden: true,
        props: true,
        meta: { title: '合伙人数据', keepAlive: true, requireAuth: false },
        component: () => import('@/views/shareData/partnerData.vue') // 懒加载
    },
    {
        path: '/benefitDetail',
        name: 'benefitDetail',
        hidden: true,
        props: true,
        meta: { title: '服务收益档位', keepAlive: true, requireAuth: false },
        component: () => import('@/views/benefitDetail/index.vue') // 懒加载
    },
    {
        path: '/benefitDetail',
        name: 'benefitDetail',
        hidden: true,
        props: true,
        meta: { title: '服务收益档位', keepAlive: true, requireAuth: false },
        component: () => import('@/views/benefitDetail/index.vue') // 懒加载
    },
    //新版路由
    {
        path: '/terminal',//活动终端列表
        name: 'terminal',
        hidden: true,
        props: true,
        meta: { title: '终端列表', keepAlive: true, requireAuth: false },
        component: () => import('@/views/terminal/index.vue') // 懒加载
    },
    {
        path: '/activity',
        name: 'activity',
        hidden: true,
        props: true,
        meta: { title: '变更活动', keepAlive: true, requireAuth: false },
        component: () => import('@/views/terminal/activity.vue') // 懒加载
    },
    {
        path: '/modify',
        name: 'modify',
        hidden: true,
        props: true,
        meta: { title: '活动变更', keepAlive: true, requireAuth: false },
        component: () => import('@/views/terminal/modify.vue') // 懒加载
    },
    {
        path: '/alterRate',//费率终端列表
        name: 'alterRate',
        hidden: true,
        props: true,
        meta: { title: '终端列表', keepAlive: true, requireAuth: false },
        component: () => import('@/views/terminal/alterRate.vue') // 懒加载
    },
    {
        path: '/modifyRate',
        name: 'modifyRate',
        hidden: true,
        props: true,
        meta: { title: '费率变更', keepAlive: true, requireAuth: false },
        component: () => import('@/views/terminal/modifyRate.vue') // 懒加载
    },
    {
        path: '/transfer',//终端划拨列表
        name: 'transfer',
        hidden: true,
        props: true,
        meta: { title: '终端列表', keepAlive: true, requireAuth: false },
        component: () => import('@/views/terminal/transfer.vue') // 懒加载
    },
    {
        path: '/terminalList',
        name: 'terminalList',
        hidden: true,
        props: true,
        meta: { title: '终端划拨', keepAlive: true, requireAuth: false },
        component: () => import('@/views/terminal/terminalList.vue') // 懒加载
    },
    {
        path: '/cardList',
        name: 'cardList',
        hidden: true,
        props: true,
        meta: { title: '结算卡列表', keepAlive: true, requireAuth: false },
        component: () => import('@/views/card/cardList.vue') // 懒加载
    },
    {
        path: '/debitCard',
        name: 'debitCard',
        hidden: true,
        props: true,
        meta: { title: '变更结算卡', keepAlive: true, requireAuth: false },
        component: () => import('@/views/card/debitCard.vue') // 懒加载
    },
    {
        path: '/information',
        name: 'information',
        hidden: true,
        props: true,
        meta: { title: '我的资料', keepAlive: true, requireAuth: false },
        component: () => import('@/views/information/information.vue') // 懒加载
    },
    {
        path: '/commercial',
        name: 'commercial',
        hidden: true,
        props: true,
        meta: { title: '商户', keepAlive: true, requireAuth: false },
        component: () => import('@/views/commercial/commercial.vue') // 懒加载
    },
    {
        path: '/viewTerminal',
        name: 'viewTerminal',
        hidden: true,
        props: true,
        meta: { title: '查看终端', keepAlive: true, requireAuth: false },
        component: () => import('@/views/commercial/viewTerminal.vue') // 懒加载
    },
    {
        path: '/viewTenant',
        name: 'viewTenant',
        hidden: true,
        props: true,
        meta: { title: '查看商户', keepAlive: true, requireAuth: false },
        component: () => import('@/views/commercial/viewTenant.vue') // 懒加载
    },
    {
        path: '/transaction',
        name: 'transaction',
        hidden: true,
        props: true,
        meta: { title: '交易明细', keepAlive: true, requireAuth: false },
        component: () => import('@/views/transaction/transaction.vue') // 懒加载
    },
    {
        path: '/earnings',
        name: 'earnings',
        hidden: true,
        props: true,
        meta: { title: '收益明细', keepAlive: true, requireAuth: false },
        component: () => import('@/views/transaction/earnings.vue') // 懒加载
    },
    {
        path: '/earningsDetail',
        name: 'earningsDetail',
        hidden: true,
        props: true,
        meta: { title: '详情', keepAlive: true, requireAuth: false },
        component: () => import('@/views/transaction/earningsDetail.vue') // 懒加载
    },
    {
        path: '/serviceList',
        name: 'serviceList',
        hidden: true,
        props: true,
        meta: { title: '服务商管理', keepAlive: true, requireAuth: false },
        component: () => import('@/views/serviceList/serviceList.vue') // 懒加载
    },
    {
        path: '/additional',
        name: 'additional',
        hidden: true,
        props: true,
        meta: { title: '新增下级', keepAlive: true, requireAuth: false },
        component: () => import('@/views/serviceList/additional.vue') // 懒加载
    },
    {
        path: '/register',
        name: 'register',
        hidden: true,
        props: true,
        meta: { title: '注册', keepAlive: true, requireAuth: false },
        component: () => import('@/views/serviceList/register.vue') // 懒加载
    },
    {
        path: '/costing',
        name: 'costing',
        hidden: true,
        props: true,
        meta: { title: '我的成本', keepAlive: true, requireAuth: false },
        component: () => import('@/views/mine/costing.vue') // 懒加载
    },
    {
        path: '/costCenter',
        name: 'costCenter',
        hidden: true,
        props: true,
        meta: { title: '我的成本', keepAlive: true, requireAuth: false },
        component: () => import('@/views/mine/costCenter.vue') // 懒加载
    },
    {
        path: '/costPrice',
        name: 'costPrice',
        hidden: true,
        props: true,
        meta: { title: '我的成本', keepAlive: true, requireAuth: false },
        component: () => import('@/views/mine/costPrice.vue') // 懒加载
    },
    {
        path: '/account',
        name: 'account',
        hidden: true,
        props: true,
        meta: { title: '我的账户', keepAlive: true, requireAuth: false },
        component: () => import('@/views/mine/account.vue') // 懒加载
    },
    {
        path: '/successful',
        name: 'successful',
        hidden: true,
        props: true,
        meta: { title: '签约成功', keepAlive: true, requireAuth: false },
        component: () => import('@/views/mine/successful.vue') // 懒加载
    },
    {
        path: '/combine',
        name: 'combine',
        hidden: true,
        props: true,
        meta: { title: '合并提现', keepAlive: true, requireAuth: false },
        component: () => import('@/views/mine/combine.vue') // 懒加载
    },
    {
        path: '/historyAccount',
        name: 'historyAccount',
        hidden: true,
        props: true,
        meta: { title: '历史账户', keepAlive: true, requireAuth: false },
        component: () => import('@/views/mine/historyAccount.vue') // 懒加载
    },
    {
        path: '/costDeploy',
        name: 'costDeploy',
        hidden: true,
        props: true,
        meta: { title: '活动列表', keepAlive: true, requireAuth: false },
        component: () => import('@/views/serviceList/costDeploy.vue') // 懒加载
    },
    {
        path: '/degression',
        name: 'degression',
        hidden: true,
        props: true,
        meta: { title: '配置成本', keepAlive: true, requireAuth: false },
        component: () => import('@/views/serviceList/degression.vue') // 懒加载
    },
    {
        path: '/liberal',
        name: 'liberal',
        hidden: true,
        props: true,
        meta: { title: '开通渠道', keepAlive: true, requireAuth: false },
        component: () => import('@/views/serviceList/liberal.vue') // 懒加载
    },
    {
        path: '/seniority',
        name: 'seniority',
        hidden: true,
        props: true,
        meta: { title: '排行榜', keepAlive: true, requireAuth: false },
        component: () => import('@/views/terminal/seniority.vue') // 懒加载
    },
    {
        path: '/callback',
        name: 'callback',
        hidden: true,
        props: true,
        meta: { title: '终端回拨', keepAlive: true, requireAuth: false },
        component: () => import('@/views/terminal/callback.vue') // 懒加载
    },
    {
        path: '/withdraw',
        name: 'withdraw',
        hidden: true,
        props: true,
        meta: { title: '提现', keepAlive: true, requireAuth: false },
        component: () => import('@/views/mine/withdraw.vue') // 懒加载
    },
    {
        path: '/complete',
        name: 'complete',
        hidden: true,
        props: true,
        meta: { title: '全部终端', keepAlive: true, requireAuth: false },
        component: () => import('@/views/terminal/complete.vue') // 懒加载
    },
    {
        path: '/incept',
        name: 'incept',
        hidden: true,
        props: true,
        meta: { title: '起始号划拨', keepAlive: true, requireAuth: false },
        component: () => import('@/views/terminal/incept.vue') // 懒加载
    },
    {
        path: '/quantitative',
        name: 'quantitative',
        hidden: true,
        props: true,
        meta: { title: '数据分析', keepAlive: true, requireAuth: false },
        component: () => import('@/views/index/quantitative.vue') // 懒加载
    },
    {
        path: '/invite',
        name: 'invite',
        hidden: true,
        props: true,
        meta: { title: '下载APP', keepAlive: true, requireAuth: false },
        component: () => import('@/views/download/index.vue') // 懒加载
    },
    {
        path: '/checkInformation',
        name: 'checkInformation',
        hidden: true,
        props: true,
        meta: { title: '查看数据', keepAlive: true, requireAuth: false },
        component: () => import('@/views/commercial/checkInformation.vue') // 懒加载
    },
    {
        path: '/material',
        name: 'material',
        hidden: true,
        props: true,
        meta: { title: '展业素材', keepAlive: true, requireAuth: false },
        component: () => import('@/views/terminal/material.vue') // 懒加载
    },
    {
        path: '/checkStatistics',
        name: 'checkStatistics',
        hidden: true,
        props: true,
        meta: { title: '查看统计', keepAlive: true, requireAuth: false },
        component: () => import('@/views/serviceList/checkStatistics.vue') // 懒加载
    },
    {
        path: '/terminalSum',
        name: 'terminalSum',
        hidden: true,
        props: true,
        meta: { title: '终端总数', keepAlive: true, requireAuth: false },
        component: () => import('@/views/serviceList/terminalSum.vue') // 懒加载
    },
    {
        path: '/activationRate',
        name: 'activationRate',
        hidden: true,
        props: true,
        meta: { title: '唤醒数', keepAlive: true, requireAuth: false },
        component: () => import('@/views/serviceList/activationRate.vue') // 懒加载
    },
    {
        path: '/shop',
        name: 'shop',
        hidden: true,
        props: true,
        meta: { title: '商城明细', keepAlive: true, requireAuth: false },
        component: () => import('@/views/serviceList/shop.vue') // 懒加载
    },
    {
        path: '/shopAccount',
        name: 'shopAccount',
        hidden: true,
        props: true,
        meta: { title: '商城账户', keepAlive: true, requireAuth: false },
        component: () => import('@/views/mine/shopAccount.vue') // 懒加载
    },
    {
        path: '/share',
        name: 'share',
        hidden: true,
        props: true,
        meta: { title: '展业分享', keepAlive: true, requireAuth: false },
        component: () => import('@/views/share/index.vue') // 懒加载
    },
    {
        path: '/increased',
        name: 'increased',
        hidden: true,
        props: true,
        meta: { title: '新增', keepAlive: true, requireAuth: false },
        component: () => import('@/views/share/increased.vue') // 懒加载
    },
    {
        path: '/templateMethod',
        name: 'templateMethod',
        hidden: true,
        props: true,
        meta: { title: '开通模板', keepAlive: true, requireAuth: false },
        component: () => import('@/views/serviceList/templateMethod.vue') // 懒加载
    },
    {
        path: '/ratesExamine',
        name: 'ratesExamine',
        hidden: true,
        props: true,
        meta: { title: '查看模板信息', keepAlive: true, requireAuth: false },
        component: () => import('@/views/share/ratesExamine.vue') // 懒加载
    },
    {
        path: '/autonym',
        name: 'autonym',
        hidden: true,
        props: true,
        meta: { title: '实名认证', keepAlive: true, requireAuth: false },
        component: () => import('@/views/information/autonym.vue') // 懒加载
    },
    {
        path: '/checkRecord',
        name: 'checkRecord',
        hidden: true,
        props: true,
        meta: { title: '审核记录', keepAlive: true, requireAuth: false },
        component: () => import('@/views/commercial/checkRecord.vue') // 懒加载
    },
    {
        path: '/awardIndex',
        name: 'awardIndex',
        hidden: true,
        props: true,
        meta: { title: '奖励明细', keepAlive: true, requireAuth: false },
        component: () => import('@/views/award/awardIndex.vue') // 懒加载
    },
    {
        path: '/dividendsIndex',
        name: 'dividendsIndex',
        hidden: true,
        props: true,
        meta: { title: '分红明细', keepAlive: true, requireAuth: false },
        component: () => import('@/views/dividends/dividendsIndex.vue') // 懒加载
    },
    {
        path: '/:pathMatch(.*)*', // 匹配所有路径  vue2使用*   vue3使用/:pathMatch(.*)*或/:pathMatch(.*)或/:catchAll(.*)
        redirect: '/404',
        hidden: true
    }
]

const router = createRouter({
    history: createWebHistory(),
    routes
})

export default router